param
(
	$domainDNSName = $(throw "'domainDNSName' Specify the FQDN")
)
{
	$arguments = @()
	$arguments += "/InstallDNS:yes"
	$arguments += "/NewDomain:forest"
	$arguments += "/SiteName:Default-First-Site-Name"
	$arguments += "/ReplicaOrNewDomain:domain"
	$arguments += "/ForestLevel:3"
	$arguments += "/DomainLevel:3"
	$arguments += "/DatabasePath:`"%systemroot%\NTDS`""
	$arguments += "/LogPath:`"%systemroot%\NTDS`""
	$arguments += "/RebootOnCompletion:yes"
	$arguments += "/SYSVOLPath:`"%systemroot%\SYSVOL`""

	$arguments += "/NewDomainDNSName:$domainDNSName"
	
	$domainDNSNameSegments = $arguments.Split(@("."), [system.StringSplitOptions]::None)
	$arguments += "/DomainNetBiosName:$domainDNSNameSegments[0]"
	
	write-host "Setup parameters: $arguments" -foregroundcolor -yellow
}